package com.mutual.reins.verify.controller;

import com.mutual.reins.interf.entity.ReinsEndorCeded;
import com.mutual.reins.interf.service.IReinsEndorCededService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zjl
 */
@Api("批单检查调用接口")
@RestController
@RequestMapping("/reins")
@Slf4j
public class VerifyPrppDangerUnitController {
    @Autowired
    private IReinsEndorCededService iReinsEndorCededService;
    @ApiOperation("测试批单分入数据查询")
    @PostMapping("/getReinsEndorCeded/{cerTiNo}")
    public void getReinsEndorCeded(@PathVariable("cerTiNo") String cerTiNo) {
        ReinsEndorCeded reinsEndorCeded = iReinsEndorCededService.getById(cerTiNo);
        System.out.println("批单号================"+reinsEndorCeded.getEndorNo());
    }

}
